const key = 'dianshang-token'

// 存
export const setToken = (newToken) => {
  localStorage.setItem(key, newToken)
}

// 取
export const getToken = () => {
  return localStorage.getItem(key)
}

// 删
export const removeToken = () => {
  localStorage.removeItem(key)
}
